﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Commons.ReturnData
{
    public class LoginResult: MessageResult
    {
        public string? Token { get; set; }
        public LoginResult(int code,string message)
        {
            base.Code = code;
            base.Message = message;
            base.Failed = true;
        }
        public LoginResult(string token) 
        {
            Token = token;
            base.Message = "登录成功";
            base.Successed = true;
        }
        public LoginResult(int code,string message,bool b):base(code,message,b) { }
    }
}
